% uname -a
Darwin [host name] 19.6.0 Darwin Kernel Version 19.6.0: Thu Sep 16 20:58:47 PDT 2021; root:xnu-6153.141.40.1~1/RELEASE_X86_64 x86_64
(.venv) % pip install -r requirements.txt
Collecting numpy
Using cached numpy-1.21.2-cp39-cp39-macosx_10_9_x86_64.whl (17.0 MB)
Collecting torch>=1.7
Using cached torch-1.9.1-cp39-none-macosx_10_9_x86_64.whl (218.8 MB)
Collecting opencv_python
Using cached opencv_python-4.5.3.56-cp39-cp39-macosx_10_15_x86_64.whl (42.6 MB)
Collecting loguru
Using cached loguru-0.5.3-py3-none-any.whl (57 kB)
Collecting scikit-image
Using cached scikit_image-0.18.3-cp39-cp39-macosx_10_9_x86_64.whl (13.1 MB)
Collecting tqdm
Using cached tqdm-4.62.3-py2.py3-none-any.whl (76 kB)
Collecting torchvision
Using cached torchvision-0.10.1-cp39-cp39-macosx_10_9_x86_64.whl (14.2 MB)
Collecting Pillow
Using cached Pillow-8.4.0-cp39-cp39-macosx_10_10_x86_64.whl (3.0 MB)
Collecting thop
Using cached thop-0.0.31.post2005241907-py3-none-any.whl (8.7 kB)
Collecting ninja
Using cached ninja-1.10.2.2-py2.py3-none-macosx_10_9_universal2.macosx_10_9_x86_64.macosx_11_0_arm64.macosx_11_0_universal2.whl (225 kB)
Collecting tabulate
Using cached tabulate-0.8.9-py3-none-any.whl (25 kB)
Collecting tensorboard
Using cached tensorboard-2.7.0-py3-none-any.whl (5.8 MB)
Collecting onnx==1.8.1
Using cached onnx-1.8.1.tar.gz (5.2 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing wheel metadata (pyproject.toml) ... done
Collecting onnxruntime==1.8.0
Downloading onnxruntime-1.8.0-cp39-cp39-macosx_10_12_x86_64.whl (5.0 MB)
|████████████████████████████████| 5.0 MB 2.1 MB/s
Collecting onnx-simplifier==0.3.5
Downloading onnx-simplifier-0.3.5.tar.gz (13 kB)
Preparing metadata (setup.py) ... done
Collecting six
Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting protobuf
Using cached protobuf-3.18.1-cp39-cp39-macosx_10_9_x86_64.whl (1.0 MB)
Collecting typing-extensions>=3.6.2.1
Downloading typing_extensions-3.10.0.2-py3-none-any.whl (26 kB)
Collecting flatbuffers
Downloading flatbuffers-2.0-py2.py3-none-any.whl (26 kB)
Collecting onnxoptimizer>=0.2.5
Downloading onnxoptimizer-0.2.6-cp39-cp39-macosx_10_9_x86_64.whl (416 kB)
|████████████████████████████████| 416 kB 32.0 MB/s
Collecting PyWavelets>=1.1.1
Downloading PyWavelets-1.1.1-cp39-cp39-macosx_10_9_x86_64.whl (4.3 MB)
|████████████████████████████████| 4.3 MB 33.8 MB/s
Collecting matplotlib!=3.0.0,>=2.0.0
Downloading matplotlib-3.4.3-cp39-cp39-macosx_10_9_x86_64.whl (7.2 MB)
|████████████████████████████████| 7.2 MB 34.3 MB/s
Collecting networkx>=2.0
Downloading networkx-2.6.3-py3-none-any.whl (1.9 MB)
|████████████████████████████████| 1.9 MB 34.0 MB/s
Collecting tifffile>=2019.7.26
Downloading tifffile-2021.10.12-py3-none-any.whl (175 kB)
|████████████████████████████████| 175 kB 55.0 MB/s
Collecting imageio>=2.3.0
Downloading imageio-2.9.0-py3-none-any.whl (3.3 MB)
|████████████████████████████████| 3.3 MB 36.8 MB/s
Collecting scipy>=1.0.1
Downloading scipy-1.7.1-cp39-cp39-macosx_10_9_x86_64.whl (32.8 MB)
|████████████████████████████████| 32.8 MB 33.8 MB/s
Collecting absl-py>=0.4
Downloading absl_py-0.14.1-py3-none-any.whl (131 kB)
|████████████████████████████████| 131 kB 56.3 MB/s
Collecting tensorboard-data-server<0.7.0,>=0.6.0
Downloading tensorboard_data_server-0.6.1-py3-none-macosx_10_9_x86_64.whl (3.5 MB)
|████████████████████████████████| 3.5 MB 36.3 MB/s
Collecting grpcio>=1.24.3
Downloading grpcio-1.41.0-cp39-cp39-macosx_10_10_x86_64.whl (3.9 MB)
|████████████████████████████████| 3.9 MB 51.4 MB/s
Collecting werkzeug>=0.11.15
Downloading Werkzeug-2.0.2-py3-none-any.whl (288 kB)
|████████████████████████████████| 288 kB 40.7 MB/s
Collecting wheel>=0.26
Using cached wheel-0.37.0-py2.py3-none-any.whl (35 kB)
Collecting tensorboard-plugin-wit>=1.6.0
Downloading tensorboard_plugin_wit-1.8.0-py3-none-any.whl (781 kB)
|████████████████████████████████| 781 kB 42.8 MB/s
Collecting markdown>=2.6.8
Downloading Markdown-3.3.4-py3-none-any.whl (97 kB)
|████████████████████████████████| 97 kB 14.2 MB/s
Collecting google-auth-oauthlib<0.5,>=0.4.1
Downloading google_auth_oauthlib-0.4.6-py2.py3-none-any.whl (18 kB)
Collecting google-auth<3,>=1.6.3
Downloading google_auth-2.3.0-py2.py3-none-any.whl (154 kB)
|████████████████████████████████| 154 kB 35.7 MB/s
Collecting requests<3,>=2.21.0
Downloading requests-2.26.0-py2.py3-none-any.whl (62 kB)
|████████████████████████████████| 62 kB 1.5 MB/s
Requirement already satisfied: setuptools>=41.0.0 in ./.venv/lib/python3.9/site-packages (from tensorboard->-r requirements.txt (line 13)) (57.4.0)
Collecting cachetools<5.0,>=2.0.0
Downloading cachetools-4.2.4-py3-none-any.whl (10 kB)
Collecting rsa<5,>=3.1.4
Downloading rsa-4.7.2-py3-none-any.whl (34 kB)
Collecting pyasn1-modules>=0.2.1
Downloading pyasn1_modules-0.2.8-py2.py3-none-any.whl (155 kB)
|████████████████████████████████| 155 kB 41.7 MB/s
Collecting requests-oauthlib>=0.7.0
Downloading requests_oauthlib-1.3.0-py2.py3-none-any.whl (23 kB)
Collecting cycler>=0.10
Downloading cycler-0.10.0-py2.py3-none-any.whl (6.5 kB)
Collecting python-dateutil>=2.7
Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
|████████████████████████████████| 247 kB 35.9 MB/s
Collecting pyparsing>=2.2.1
Downloading pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
|████████████████████████████████| 67 kB 16.9 MB/s
Collecting kiwisolver>=1.0.1
Downloading kiwisolver-1.3.2-cp39-cp39-macosx_10_9_x86_64.whl (61 kB)
|████████████████████████████████| 61 kB 582 kB/s
Collecting idna<4,>=2.5
Downloading idna-3.3-py3-none-any.whl (61 kB)
|████████████████████████████████| 61 kB 16.2 MB/s
Collecting urllib3<1.27,>=1.21.1
Downloading urllib3-1.26.7-py2.py3-none-any.whl (138 kB)
|████████████████████████████████| 138 kB 40.6 MB/s
Collecting certifi>=2017.4.17
Downloading certifi-2021.10.8-py2.py3-none-any.whl (149 kB)
|████████████████████████████████| 149 kB 37.4 MB/s
Collecting charset-normalizer~=2.0.0
Downloading charset_normalizer-2.0.7-py3-none-any.whl (38 kB)
Collecting pyasn1<0.5.0,>=0.4.6
Downloading pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)
|████████████████████████████████| 77 kB 11.2 MB/s
Collecting oauthlib>=3.0.0
Downloading oauthlib-3.1.1-py2.py3-none-any.whl (146 kB)
|████████████████████████████████| 146 kB 35.5 MB/s
Using legacy 'setup.py install' for onnx-simplifier, since package 'wheel' is not installed.
Building wheels for collected packages: onnx
Building wheel for onnx (pyproject.toml) ... error
ERROR: Command errored out with exit status 1:
command: /Users/takuya/YOLOX/.venv/bin/python3.9 /Users/takuya/YOLOX/.venv/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /var/folders/90/j35dbhzd2rd0hdmdvqnls8kh0000gn/T/tmpug1w68rs
cwd: /private/var/folders/90/j35dbhzd2rd0hdmdvqnls8kh0000gn/T/pip-install-bvj01sqd/onnx_3d4094e84ac448ff97d10ef2e59d4aeb
Complete output (79 lines):
fatal: not a git repository (or any of the parent directories): .git
/private/var/folders/90/j35dbhzd2rd0hdmdvqnls8kh0000gn/T/pip-build-env-z1f2srpi/overlay/lib/python3.9/site-packages/setuptools/dist.py:717: UserWarning: Usage of dash-separated 'license-file' will not be supported in future versions. Please use the underscore name 'license_file' instead
warnings.warn(
running bdist_wheel
running build
running build_py
running create_version
running cmake_build
-- The C compiler identification is AppleClang 12.0.0.12000032
-- The CXX compiler identification is AppleClang 12.0.0.12000032
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PythonInterp: /Users/takuya/YOLOX/.venv/bin/python3.9 (found version "3.9.7")
-- Found PythonLibs: /usr/local/Frameworks/Python.framework/Versions/3.9/lib/libpython3.9.dylib (found version "3.9.7")
Generated: /private/var/folders/90/j35dbhzd2rd0hdmdvqnls8kh0000gn/T/pip-install-bvj01sqd/onnx_3d4094e84ac448ff97d10ef2e59d4aeb/.setuptools-cmake-build/onnx/onnx-ml.proto
CMake Error at CMakeLists.txt:261 (message):
Protobuf compiler not found
Call Stack (most recent call first):
CMakeLists.txt:292 (relative_protobuf_generate_cpp)
-- Configuring incomplete, errors occurred!
See also "/private/var/folders/90/j35dbhzd2rd0hdmdvqnls8kh0000gn/T/pip-install-bvj01sqd/onnx_3d4094e84ac448ff97d10ef2e59d4aeb/.setuptools-cmake-build/CMakeFiles/CMakeOutput.log".
Traceback (most recent call last):
File "/Users/takuya/YOLOX/.venv/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 349, in <module>
main()
File "/Users/takuya/YOLOX/.venv/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 331, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/Users/takuya/YOLOX/.venv/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 248, in build_wheel
return _build_backend().build_wheel(wheel_directory, config_settings,
File "/private/var/folders/90/j35dbhzd2rd0hdmdvqnls8kh0000gn/T/pip-build-env-z1f2srpi/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 221, in build_wheel
return self._build_with_temp_dir(['bdist_wheel'], '.whl',
File "/private/var/folders/90/j35dbhzd2rd0hdmdvqnls8kh0000gn/T/pip-build-env-z1f2srpi/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 207, in _build_with_temp_dir
self.run_setup()
File "/private/var/folders/90/j35dbhzd2rd0hdmdvqnls8kh0000gn/T/pip-build-env-z1f2srpi/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 258, in run_setup
super(_BuildMetaLegacyBackend,
File "/private/var/folders/90/j35dbhzd2rd0hdmdvqnls8kh0000gn/T/pip-build-env-z1f2srpi/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 150, in run_setup
exec(compile(code, __file__, 'exec'), locals())
File "setup.py", line 321, in <module>
setuptools.setup(
File "/private/var/folders/90/j35dbhzd2rd0hdmdvqnls8kh0000gn/T/pip-build-env-z1f2srpi/overlay/lib/python3.9/site-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/usr/local/Cellar/[email protected]/3.9.7_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/local/Cellar/[email protected]/3.9.7_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/local/Cellar/[email protected]/3.9.7_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/private/var/folders/90/j35dbhzd2rd0hdmdvqnls8kh0000gn/T/pip-build-env-z1f2srpi/overlay/lib/python3.9/site-packages/wheel/bdist_wheel.py", line 299, in run
self.run_command('build')
File "/usr/local/Cellar/[email protected]/3.9.7_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/Cellar/[email protected]/3.9.7_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/local/Cellar/[email protected]/3.9.7_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/local/Cellar/[email protected]/3.9.7_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/Cellar/[email protected]/3.9.7_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "setup.py", line 217, in run
self.run_command('cmake_build')
File "/usr/local/Cellar/[email protected]/3.9.7_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/Cellar/[email protected]/3.9.7_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "setup.py", line 203, in run
subprocess.check_call(cmake_args)
File "/usr/local/Cellar/[email protected]/3.9.7_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/local/bin/cmake', '-DPYTHON_INCLUDE_DIR=/usr/local/Cellar/[email protected]/3.9.7_1/Frameworks/Python.framework/Versions/3.9/include/python3.9', '-DPYTHON_EXECUTABLE=/Users/takuya/YOLOX/.venv/bin/python3.9', '-DBUILD_ONNX_PYTHON=ON', '-DCMAKE_EXPORT_COMPILE_COMMANDS=ON', '-DONNX_NAMESPACE=onnx', '-DPY_EXT_SUFFIX=.cpython-39-darwin.so', '-DCMAKE_BUILD_TYPE=Release', '-DONNX_ML=1', '/private/var/folders/90/j35dbhzd2rd0hdmdvqnls8kh0000gn/T/pip-install-bvj01sqd/onnx_3d4094e84ac448ff97d10ef2e59d4aeb']' returned non-zero exit status 1.
----------------------------------------
ERROR: Failed building wheel for onnx
Failed to build onnx
ERROR: Could not build wheels for onnx, which is required to install pyproject.toml-based projects